arr1 = [1, 2, 3, 4, 5]

# map
arr2 = map(lambda x:2*x, arr1)
print "mapped arr2: ", arr2

# reduce
result = reduce(lambda x,y:x+y, arr1)
print 'reduced result:', result
